import { observable, action } from "mobx";


class MainStore{

    @observable
    count=0;
    
    @action
    addCount(){
        this.count++;
    }

    @observable
    todoList=[{text:'李水仙今天不洗澡'},{text:'李水仙今天又不洗澡'}];
    @action
    addList(value){
        this.todoList.push({id:this.count,text:value})
    }


}

export default MainStore;